package com.permissionmanager.mapper;

import com.permissionmanager.entity.Notice;
import com.permissionmanager.entity.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * notice持久层
 *
 */
@Mapper
public interface NoticeMapper {
    void add(Notice notice);

    void update(Notice notice);

    List<Notice> findPage(Integer skipNum, Integer pageSize, String title, String username);

    void del(Integer id);

    List<Notice> findNotice(Integer id, String title, String username,Integer open);
}
